<?php

class Forma_pagto_model extends CI_Model {

    public function __construct() {
        parent::__construct();        
    }

    public function getAll(){
    	$retorno = array();

        $this->db->order_by('desc_forma_pagto');
        $query   = $this->db->get('forma_pagto');

        if($query && $query->num_rows() > 0){
            $retorno = $query->result();
        }

    	return $retorno;
    }
}